Cleanep some errors on 32bit builds in export.cpp