Fix build error in other directory build