Error: ssize_t not defined

I kept getting errors about ssize_t not being defined so adding `sys/types.h` fixed that for me.

Also made the Makefile create objects for easier embedding in projects.