Bluz example in particle library does not compile

When trying the example, I get this error compiling: any ideas?

In file included from gateway.cpp:2:0:
bluz_gateway/bluz_gateway.h:32:0: warning: “TCPCLIENT_BUF_MAX_SIZE” redefined [enabled by default]
#define TCPCLIENT_BUF_MAX_SIZE TX_BUFFER
^
In file included from ./inc/application.h:55:0,
from gateway.cpp:3:
…/wiring/inc/spark_wiring_tcpclient.h:35:0: note: this is the location of the previous definition
#define TCPCLIENT_BUF_MAX_SIZE 128
^
In file included from ./inc/application.h:55:0,
from bluz_gateway/bluz_gateway.h:39,
from bluz_gateway/bluz_gateway.cpp:1:
…/wiring/inc/spark_wiring_tcpclient.h:35:0: warning: “TCPCLIENT_BUF_MAX_SIZE” redefined [enabled by default]
#define TCPCLIENT_BUF_MAX_SIZE 128
^
In file included from bluz_gateway/bluz_gateway.cpp:1:0:
bluz_gateway/bluz_gateway.h:32:0: note: this is the location of the previous definition
#define TCPCLIENT_BUF_MAX_SIZE TX_BUFFER
^
bluz_gateway/bluz_gateway.cpp: In member function ‘void bluz_gateway::init()’:
This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:16:13: error: ‘SLAVE_SELECT’ was not declared in this scope
pinMode(SLAVE_SELECT, OUTPUT);
^

This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:24:13: error: ‘SLAVE_ALERT_PIN’ was not declared in this scope
pinMode(SLAVE_ALERT_PIN, INPUT_PULLDOWN);
^

bluz_gateway/bluz_gateway.cpp: In member function ‘void bluz_gateway::send_data(gateway_service_ids_t, uint8_t, uint8_t*, uint16_t)’:
bluz_gateway/bluz_gateway.cpp:40:87: warning: narrowing conversion of ‘(((packet_length + -5) & 65280) >> 8)’ from ‘int’ to ‘uint8_t {aka unsigned char}’ inside { } [-Wnarrowing]
uint8_t header[4] = {(( (packet_length-SPI_HEADER_SIZE-BLE_HEADER_SIZE) & 0xFF00) >> 8), ( (packet_length-SPI_HEADER_SIZE-BLE_HEADER_SIZE) & 0xFF), id, service};
^
bluz_gateway/bluz_gateway.cpp:40:144: warning: narrowing conversion of ‘((packet_length + -5) & 255)’ from ‘int’ to ‘uint8_t {aka unsigned char}’ inside { } [-Wnarrowing]
uint8_t header[4] = {(( (packet_length-SPI_HEADER_SIZE-BLE_HEADER_SIZE) & 0xFF00) >> 8), ( (packet_length-SPI_HEADER_SIZE-BLE_HEADER_SIZE) & 0xFF), id, service};
^
bluz_gateway/bluz_gateway.cpp: In member function ‘void bluz_gateway::spi_data_process(uint8_t*, uint16_t, uint8_t)’:
bluz_gateway/bluz_gateway.cpp:128:21: warning: unused variable ‘socketId’ [-Wunused-variable]
uint8_t socketId = (buffer[1] & 0xF);
^
bluz_gateway/bluz_gateway.cpp: In member function ‘void bluz_gateway::spi_retreive()’:
This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:198:24: error: ‘SLAVE_ALERT_PIN’ was not declared in this scope
while (digitalRead(SLAVE_ALERT_PIN) == LOW) { }
^

This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:203:18: error: ‘SLAVE_SELECT’ was not declared in this scope
digitalWrite(SLAVE_SELECT, LOW);
^

This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:229:28: error: ‘SLAVE_ALERT_PIN’ was not declared in this scope
while (digitalRead(SLAVE_ALERT_PIN) == LOW) { }
^

bluz_gateway/bluz_gateway.cpp: In member function ‘void bluz_gateway::spi_send(uint8_t*, int)’:
This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:270:22: error: ‘SLAVE_SELECT’ was not declared in this scope
digitalWrite(SLAVE_SELECT, LOW);
^

bluz_gateway/bluz_gateway.cpp: In member function ‘void bluz_gateway::loop()’:
This looks like an error in bluz_gateway library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
bluz_gateway/bluz_gateway.cpp:299:17: error: ‘WiFi’ was not declared in this scope
WiFi.listen();
^

make[2]: *** […/build/target/user/platform-103bluz_gateway/bluz_gateway.o] Error 1
make[1]: *** [user] Error 2
make: *** [/mnt/compile-service-shared-workspace/103_bluz_41_1/firmware/modules/bluz/user-part/makefile] Error 2
Ready.

Currently there is an issue on Bluz side: