I am facing the exact same issue with the functional code on Uno and 101, but shift to arduino Primo showed that the library update is needed. Thanks @rihatcw for the update and solution for the compilation problem. It worked for me as well.
@Grumpy_Mike: I tried uncommenting the line and unfortunately nothing has changed.