Trace and debug library for POSIX systems targeting embedded system applications