Use unsigned type to test export option bitmask
This makes the code more robust should we ever reach 32 export flags (currently we have 20).