some small fixes and refactoring
* changed compilation set of the GCC tool chain
* access of the resource masks at the _Resource_ resolver,
* the _Compile_ resolver runs headers scanner only once,
* common implementation of the resource scanners (filtering of resources
according to the masks.