removed variadic logging macros and started fixing some gcc warnings