Fixed regex.c compile errors