plugins Qt5 fix

added HAVE_QT5 define and widgets qt module
when Qt5 building
some Mac building optimization
Merge pull request #82 from drizt/master

plugins Qt5 fix