added fPIC to Makefile flags
added ringbuffer files