Fixed some 32/64 compile errors