You can also use CMAKE_CXX_FLAGS=-fpermissive, alternatively. This does not even require changing the file, just run "cmake .. -DCMAKE_CXX_FLAGS=-fpermissive". 
But yeah, the issue is definitely there. Still, the complaint goes into the direction of the bluez developers

But yeah, the issue is definitely there. Still, the complaint goes into the direction of the bluez developers
