updates from Rick Macklem. Also, fix MIPS implementation defines.