changed various names of case functions to avoid name collisions in Windows