Fix build when exej is installed or not.