Fix 64-bit compiler warnings

This commit removes those pesky warnings when compiling for 64-bit devices.