Adding sys/types.h so it compiles on Erlang < R16B