There was no aparent reason why these files were not wrapped in an #if UNITY_EDITOR (I just missed them :).
In the latest version of NodeCanvas gone live yesterday, these files are correctly wrapped in UNITY_EDITOR define symbol. There is also a big folder restructure as well by the way, thus I suggest to please make a clean installation when you decide to update.