Turning on extra warnings for C code.

As well as fixing the issues that came up thanks to it.

Signed-off-by: Magnus Therning <magnus@therning.org>