If only an LCD is defined and no menu or keyboard defined, there is a compilation error. Added conditional compilation.