Removed non-required libraries from link
Changing compiler to reduce dependencies
Updating Makefile to differentiate build output
Updated Makefile to build main-c in a runnable way.
Cleaned up ring buffer structure.
Ensuring that fields that need it are volatile or const