added protection around EXPORT definition around xbee.h
improved clarity around modes in unix build system