Fixed some minor issues with Visual Studio not linking properly and refined the windows-defines.h setup.