Make typelib marshaller safe for systems that don't allow executable