A solution that partly fixes alexkowa/sdcMicro#21 and works under
Windows as well, so now testing on OS X and Linux is needed