Define ol.pointer.PointerEvent.createMouseEvent before using it

Fixes #1961