Fix #1058: Allow exporting protected members

... there's a comment saying "DO NOT USE"... but if you really want :)