Fix style and add linter checks

Remove tabs from our sources (leave in 3rd party).
Fix line length.
Add spaces after casts.
Convert line comments.
BSD multi-line comments.