Case insensitive ends_with function

A case insensitive version of utils.h ends_with function.

I tested by modifying a call to ends_with in graphics/TextureBuilder.cpp (line 94) to 
```
    if (ends_with(filename, ".DDS")) {
```
Game ran without reporting any errors.

Issue https://github.com/pioneerspacesim/pioneer/issues/2328