Added CMake option for precompiling routines.