Changed optimization flags for typespecs