Add c safe wrapper for s2logger
Fix c only code not linking with logger