OS X library target

Hi Mike

Added OS X library and test targets.