Fix monograph to build under various --disable-boehm/--disable-libraries configurations.