Work around a cmake bug which is not looking XXX_DIR as a prefix.