Changed mkstep to tmpnam, so it's cross-platform now.