Moving the implementation of the snprintf wrapper functions to the platform module allows to re-use the same implementation throughout the entire codebase.
Implement a common sleep function to eliminate some conditional compilation in the rest of the code.