Core: Fix two sets of warnings when compiling on Linux.

Formatting warnings, and using 0 literals to represent NULL.