Replace "ulong" usage by "size_t" from standard library (since ulong type was only used to store sizeof() result).