Use CONFIG+=c++11 instead of QMAKE_CXXFLAGS.

This fixes the compilation on Mac, where Qt does not find
c++11 headers with the old approach.
Create profile if none exist on server choice.

This fixes Github issue #403.
Merge pull request #412 from lamperi/master

Two things: fix building on Mac w/ Qt 5.1 & close issue #403