update project settings and fixed compile error