Windows fixes to build system: use the 'find' and 'sort' found by configure