Be a bit more clever about whether we have streams compiled in.

This is necessary to be able to skip tests that require streams.