We don't need to build osx on linux and some inc paths are needed for tests.
Interesting bug which handles a segfault, a key error and tidying up some scaffolding in python.c
Merge pull request #849 from JoesCat/master

osx fix, segfault fix