fix build.bat: add Configuration option, add log putput