Pass LOCALBASE to CONFIGURE_ENV and MAKE_ENV only if using qmake.

We only want the changes to the environment if qmake is used to build
the port, not for all ports that set USE_QT5.