restoring vanished code

see issue #339
correcting comment for the BuildConfig generation code
Merge pull request #340 from marchelo/restoring-missed-code

restoring vanished code