make compiling documentation optional if dependency check fails