compile project and fix syntax errors