Fix some warnings generated by clang.
Fix some x64 type warnings.
Merge pull request #786 from unknownbrackets/warnings

Fix some more warnings