Use 1x1's or 2x2's (plain pine) and PREDRILL ALL HOLES INTO THE MDF (can't stress that enough, otherwise it will split)
Also, as I posted in another thread about securing joysticks mounted underneath control panels, when using the 1x1's, I would suggest getting a caulk-tube sized type of whats called "Extra Strength Subfloor Adhesive".. it's called "PL 400" and if you didn't even screw the 1x1's (just pressed them in place and held them long enough for it to cure (it wont move after a few minutes, even with gravity, but fully cures in a few weeks).. you could get by without any screws, though I wouldn't recommend it. By combining PL400 with 1x1's AND screws, you have a very very sturdy system.
Forget elmers wood glue that will just crack on the first "move" of the cabinet.. If you use any glue, just use the PL400 stuff... It works.. it;s stronger than the glue used to glue the layers of plywood together!