Use uint32_t instead of size_t.

This fixes compilation on Linux.
formatting: Remove trailing whitespace.
Enable basic compiler warnings.

So that now we can see all uninitialized variables.