This appears to be an issue with the build of the OSMC kernel headers.
See Has anybody tried to install Wireguard? - #26 by dillthedog for further details.
I know @sam_nazarko has been very busy with Kodi 18, so it might still be on the list of things to do.