Fixing compile warnings for 64-bit compilation and for deprecated method usage

Fixing issue #63 and #64