use -O1 as minimum supported debug, -O0 is broken on too many platforms