Avoid undefined reference to "undefined reference to __gxx_personality_v0" error with newer versions of gcc on Linux