Sort includes.
Fix style nits by using a space after a keyword.
Use void on functions with no parameters.

Otherwise, when using functions with no parameter specification, nothing
is assumed about its arguments (ie all checks are turned off).
Fix indentation.
Add -Wstrict-prototypes to CFLAGS.

To prevent declaring or defining functions without parameter
specification.