adding autotools support
adding missing header <ifstream>