Fixed a bunch of VS linker issues with Release builds