add fontpalette support; code clean-ups; workaround DLL dependency issue (libgc_gui.lib must be specified before libgc_common.lib)