Hide printf format warnings because iprintf is not printf
Fix types to silence more warnings
Fix includes; builds without errors on os x