fix missing prototype, mitigate compiler warnings