Add library existsence check in the cakefile