Properly check for sys/types.h