Added flags for better conformance to ANSI C and a debug/release rule.