Q typings that workaround for the bugs with TypeScript 0.9.5.