Fixed compile errors from compiling on a 64 bit Ubuntu machine.