* Qt5 compatibility

Thanks to https://github.com/bitcoin/bitcoin/pull/2721/files and http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5#6fc981baf045630af42b49ef0525ace3