Allow OSX to build phantompy. Account for brew vs non-brew installs

Refined CMakeLists.txt to add in the correct `stdlib` flag (assuming Xcode CLT) and does some tests to catch the prefix of the QT5 install if brew has been used).