Adding #include <sys/types.h to lib/includes.h

Header files are not self contained in BSD. Without types, does not build on FreeBSD. Issue #110.