fix build error when compiling in parallel