Qt5 libraries in final release were called libQt5 instead of libQt.

Fix conflict between mkmf and recent FFI.

Set path of option --with-qt-dir as runtime linker path to avoid LD_LIBRARY_PATH dependency.