bugfix:
- fix compiler warning.
- fix uppercase bug for linux.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>