Add -frtti to compile line to try and fix linking error on Linux.