Fix metadata build on linux