Xbee frame should be dispatched to entries that match all frame types (0) or matches the current frame's type
Fix compilation problem on win32 due to MingW 4.1 bug expecting windows.h to be included before wtypes.h. See http://sourceforge.net/p/mingw/bugs/2047/ for related information.