-DCEGUI-STATIC should of course be -DCEGUI_STATIC.