Make library work on case insensitive platforms