Fix missing symbols with gcc