Using CMAKE_CXX_FLAGS instead of add_definitions for compiler options.
Link with libc++ on Mac OS X.

References #17.