minor changes and bugfixes

- Bugfix: wrong usage of response header
- More complete configuration of the build environment