Added a RingBuffer implementation to openpal
small fixes for logging macros