Workaround to add -fvisibility=hidden for older versions of cmake.