Fix compilation under gcc3: avoid trigraphs, comparison always true/false, and pass -fno-strict-aliasing