Remove cast warnings on OSX with LLVM : first step

Second one will be done on solarus1.0.0 branch, since all lines which cause warnings are removed on this branch, but some are added, especially with lua function.