fix "no visible global function definition" NOTEs