Fixed export issue on 32bit systems