Rewrite qInstallMsgHandler test in C++

* Allows tests independent of debug settings for Qt
* Allows testing behavior unreachable from Ruby
Fix OS X keychain bug in Qt 5

* Performing basic auth would pop up a keychain dialog
* Pressing "Accept" resulted in an infinite loop
Simplify Rakefile build

* gem install doesn't depend on rake
* Always build tests during rake