general improvements

- pass CC
- install cleanup
- parallel build fix
- gcc 4.7 werror fix
- export env vars, to be used in both builds