Improved the custom qmake variables BINDIR, LIBDIR, RESDIR and DOCDIR
based upon the pull request #416
Merge branch 'qmake-custom-vars' into develop