Some changes to RMSD. Does this compile with gcc?