Fix all compile-time warnings.
Break rc.h into multiple headers for better modularization.