Use -fPIC in kNet build as well as well to fix build error