Remove ModuleDeclaration hack

Disable validation on library folders