[PATCH] Use __typeof__ so <guiddef.h> is compatible with -std=c++11