portability updates

converted from complex.h to std::complex, removed faulty msw ifdef and removed affile from msw as well to try to make building in windows possible