Fixed compile warnings with clang

Maybe some data types should better be changed instead of these workarounds