Added support to custom output directory through qmake variables BINDIR,
LIBDIR and RESDIR (issue #402)