this fixes the ChibiOS build on cygwin by reducing path lengths to below the cygwin limit
this is based on initial work by Sid, reset here for easier merging