Fix linker errors for x64