Fix ApidbWriter when importing IDs > 2,147,483,647

When importing Data containing Node-, Way- or RelationIDs
> 2,147,483,647 an integer overflow caused the import to fail.