Move defines to ol namespace

This makes all `@define`s requireable (with `goog.require('ol')`).

Fixes #1989.