This message was posted on behalf of Intel Corporation
Thanks for reaching out.
I found that you posted the same issue on the Arduino forum and you have solved it. https://forum.arduino.cc/index.php?topic=478404.0
It is great to know that you fixed it! Please consider that if you have issues with custom codes or libraries using Arduino IDE, the best recommendation that we can give you is to contact Arduino, just like you did.
If you have issues using the Intel Curie itself, please post in this community and we will be glad to help you.
Have a nice day.