Fixes for several compiler warnings

-Wimplicit-atomic-properties
-Wsign-conversion
-Wreceiver-is-weak
suppress -Wformat-nonliteral warning