fix warnings (use of size_t with %d)
fix a warning

The 3rd argument of yaml_write_handler_t is of type size_t.
Mac OS X support
Create directory before installing, remove -fPIC CFLAG.