Replace all usage of <sys/types.h> with the more portable <QtGlobal>.
At least on macOS the standard <sys/types.h> header did not have a typedef for ulong.