Fix ol externs definitions

* Namespaces must be defined;
* Interfaces must be initialized.
Fix namespacing convention
Merge pull request #2795 from gingerik/externs

Externs