fixing build patch and dependency