Correctly compile for 32bit and 64bit