get g++ build to correctly work on OSX with qmake flag

As discussed in issue #10 - tested on my computer.