optional compilation and linkage of DAGMC