Derivations of generalized quaternion algebra