Add Mac suppport to makefile.

Update makefile to include support to mac. Made sure the libook.dylib target is used on mac and double checked that the libook.so target is used on linux (via Travis CI).