Add mutex to logger
Merge branch 'feature'
Remove use of libstdc++ flag