Added C99 flags
Changes to make code C99 compliant