Don't link shlwapi directly.

For MSVC use #pragma comment to link shlwapi, and for MinGW use dynamic
loading of this library.
Fix coding nits.

- enums shouldn't be DLL-exported,
- Placement of "{"
- Always have dtor of wxGuage and wxFrame.