build: Fix compilation on Cygwin

Change-Id: If44a1481bfe77b3ff59a116d3a8ffafd6a6970cd