Adding support to compile with SMLNJ.