Extensions of two fixed point theorems of Ky Fan