get g++ build to correctly work on OSX with qmake flag
altered implementation to avoid use of environment variables
Merge pull request #11 from jpz/master

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