Fixed linker errors for 64bit processors