Set build flags to release mode