Add a global header and add proper definition for LIBFM_QT_API macro.