Make Boost static library usage optional but on by default.

Properly ignore CMakeFiles directories.