fixing app.config and assembly compat issues