build: use configure() macro instead of static file

This configure() macro will write file without static one.
This will avoid us from adding this macros into two places.

And after this patch *v8* macroses will be interpreted correctly, will
not be defined if this functionality is not supported, instead of empty
value (before the patch).
build: don't use glob patterns for decide which modules to compile