Fixing building issues on OSX 10.9 when using a non-system python installation

The new compiler in OSX 10.9 uses a new STL implementation and requires a -mmacosx-version-min=10.9 compiler flag in order to compile STL code successfully.