fixed tolower for general compile and added goto support