Visual Studio 14

I had to make a few tweaks to get everything compiling with VS14 CTP.

These fixes should not affect any other platforms.

I have not tried to build Polycode Lua yet, but that also should not be affected.