Introduce olcsx

Add an extern for typedefs like in OpenLayers to prevent unwanted optimization from closure.