Include QApplication header and resolved some warnings for some configurations. Resolves issue #134.