Adding cmake flags to optionally build and link audit library.