modify makefiles and "isFlip" method of uiwidgets