C++11 compatability

C++11 requires explicit cast from ifstream to bool.