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

Fix error message for "before text", also add the missing files to allow compile check the samples/greg.