fix issues relying on size of unsigned long