Fixed Visual Studio linker errors