Fix client not compiling as EXE, other build tweaks and fixes.  Runs again.