Fix linker errors on Windows (VS2012)