fail on unsupported open flags

I.e. instead of silently ignoring.