Fix some code consistency issues.

- Function typedef names
- Include guards
- Style