fixed build process to work on 64 bit machines.