Do not export symbols of statically linked libraries on linux.

Other OS should also not export them. Not sure if that is
case yet for Mac.