Some tweaks to make the connection config structuremap friendly.