Fixing build warnings.

Added -fgnu89-inline to RPI_CFLAGS to ommit all those "inline function declared
but never defined" warnings.
More cleanups.

Got rid of remaining warnings in code.