Allow several options to be used even if we don't have a library

Some actions write extra attributes to the library target. If we don't have any (such as in opm-material), then these actions shouldn't crash.