Qt 5 support

With Qt 5 widgets were moved to the QtWidgets library.
Fix build
Merge pull request #8 from plfiorini/master

Qt 5 support and build fixes