Fix compiler warning about implicit declaration of function tolower()