64bit support

the 64bit switchover is near (see http://lists.openstreetmap.org/pipermail/dev/2012-December/026354.html). The changes in this pull request make osmium 64bit proof and allow 3rd party applications to do the same (see https://github.com/MaZderMind/osm-history-splitter/compare/64bit).