Add checks for ctype.h/tolower