Refine the build configure