Added use of SDLmain.

- Removed #undef main from main.cpp
- Added SDLmain as a link target
Improved debug output for SetupLibraries.cmake