Add missing import of printf for debug flag