Adding OSX to build matrix

Only supports Python 2.7 (default version on OSX) and clang, which is the most typical use-case anyway. Getting gcc installed on the latest OSX is a pain, same with Python 2.6.

Had to manually define the build matrix to do this. Also make many prerequisite commands conditional on the OS. 

Fixes #932.