Windows compile tweaks and test Totte's freq anal on Windows