Fix all warnings for native and qemu-i386

Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
Either @fabianbrandt or me. Probably @fabianbrandt knows the code currently better.