Fix bug introduced by 974ee8a2c7. FreeBSD needs types.h