A piece of plywood would work for the shelf, the secret is bracing it properly. I would but one brace at the back corner, and two toward the front sides. It will have to be wide enough that you can hit studs with all brackets. If the plywood is thick enough, just run 2x4 under the shelf across both walls.