Add -fvisibility=hidden flag to hide non-exported symbols in the .so