add shim for old-style constructor (with deprecation warning)