Merge pull request #4 from gladhorn/master

Fix warnings
Fix the non-developer build for pre-5.1 Qt5 versions
and add CONFIG += package option.
Compile with QT_NO_CAST_FROM_ASCII and friends

This should fix the remaining bytearray and string
cast warnings.