Fix QFrame borer bug on X11 desktop and fix packing issue of building script.