Fix Readline CMake macros so that newest version is taken in OSX.
Add filesystem to used Boost libraries.