Fixed lower/upper case functions to use locale.

Previous version hardcoded some letters from alphabet and added its
own (most probably German special characters). This is better
because locale is used for the conversion.
Added mingw build on Linux.