IDE 166 Compile Problems With RCSwitch Examples

I have a project under development to decode 433 MHz signals from commercial RF Remotes & works well under IDE1.6.5 but now get fail errors as follows:

Link to original product & detail on RF Protocols is as follows:
http://www.smithonline.id.au/?Greg:Wireless_Control

following on from that I started using arduino library RCSwitch and followed advice from the following link I made an excellent prototype of what I was wanting to eventually achieve...

CURRENT PROBLEM
After upgrading from IDE 165 to IDE166 I get compile errors. For example when I just run the example program "ReceiveDemo_Advances" from the RCSwitch library I get following error:

ERROR CODE is:

:helperfunctions:1: error: 'char* dec2binWzerofill(long unsigned int, unsigned int)' was declared 'extern' and later 'static' [-fpermissive]

Refer to the attached image of screen dump.

I have tried the IDE166 upgrade on two different PCs & get same compile error and when I return to IDE165 on another PC problem error does not exist. All PCs are running Windows 10.

Any help appreciated, perhaps someone has RCSwitch installed on their system.

RCSwitch Error.pdf (300 KB)

Further to my previous post:
On my Windows 10 PC which has compile errors using IDE 1.6.6 I have now also installed a copy of the previous IDE 1.6.5 and this works fine without error along with 1.6.6 still available ...

BUT in common with some other posts there may be some issues with IDE 1.6.6 which is otherwise an excellent enhancement that everyone should try.

Still looking forward to any ideas of resolving the previously described error.

Regards all

Im having the same issues. Were you able to solve compiling error?