Avoiding implicit declaration of function warning