restored correct compile flags