fix opt build