RF: copy includes list for extensions

Accidentally using the same includes, lib list for all extensions.
Avoid this by doing deep copy of dict (that has the lists) before using
it.
Merge pull request #523 from matthew-brett/exts-includes-fix

RF: copy includes list for extensions