Added NS_REQUIRES_NIL_TERMINATION and NS_FORMAT_FUNCTION macros where is is needed.
Fixed warnings in printf-like formats.