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.
Remove?