Set /Zm for Visual C++ properly even if it wasn't set before.
Removed some debug messages and a redundant if.
Added default install prefix. Credits to Magnifikator.
Got rid of a truncation warning.
Fixed a 'not all control paths return a value' warning.