update and fix compiler options