Removing annoying warning about snprintf redefined
Fixing some more warnings