Add missing files to compile check the samples, also silence the compiler on basic.leg

This are the missing files to allow compile check the samples/greg.