spovm1: added ifdefs for windows
spovm1: fix