Close issue #3.

    In C++11, the standard streams have an explicit operator bool() instead
    of an implicit operator void*(). We need to explicitly cast the stream
    to bool in the test. The issue was reported on GoogleTest: see
    https://code.google.com/p/googletest/issues/detail?id=429.