cleanup code
fix prototypes for 64-bit build