updated Makefiles for OS X compilation with clang/clang++
added static cast to bool from ifstream for clang++ compilation