I can't seem to get the "MIDI Setup..." window to work in a standalone. After I build the standalone and open the window instead of seeing a nice list of the MIDI devices and the option to offset their channels I get a window with a diagonally striped background and the word (deviceviewer) in parenthesis. Not sure which version of Max broke this. I am now using the latest - 5.1.8 on OSX 10.6.8.
I notice the same problem when I open my patch in Max5. I get the window with the word (deviceviewer). This goes away if I select "MIDI Setup..." in Max 5. Then everything magically works and my copy of the MIDI Setup works.
Here is the patch - Just an exact copy of the MIDI Setup that comes in Max5 but with an added inlet so that I can use pcontrol to open the window.