Include sys/types.h for u_int32_t

This is required on FreeBSD, but should be tested on other systems, #ifdef may be required. For FreeBSD, that'd be

```
#if defined(__FreeBSD__)
...
#endif
```