fixed build_headers.bat behavior