Need exportable constructor for constructor options in olx

When a constructor options object is created in the olx namespace,
the constructor that uses it must be exportable as well.

Fixes #3045.