fix non-compliant use of typeof
silence implicit function decl warning