Rename functions and variables
Add missing vuprintf.h includes
Add call to enable the logging interface in main