Fix the non-developer build for pre-5.1 Qt5 versions
and add CONFIG += package option.