linux build with template