Fix 'implicit declaration of function' warning