specify CodeCapacity based on target arch, not build arch
return XToolkit from iOS getPreferredToolkit stub

This is necessary to prevent an NPE in Hashtable.put when
System.initProperites tries to put a null value in the map for
java.awt.graphicsenv.