Added sys/types.h inclusion