move WindowFunction enum class into RealDft class
move resource ownership out of threads, pass them in by ref
fix sign comparison warning