fix test decoding log file locations
fix typedefs code for windows and --host builds.