Add visibility support, generates files in build directory

Dear all,
here is a patch which implements visibility support for console_bridge in an attempt to reduce possible ABI breakage.
Another patch is dealing with the fact that files where generated out of the build directory which is usually considered as a bad practice.