Get rid of static variables in mount.c