This commit adds support for building on Cygwin/MSYS2. Signed-off-by: Christopher Ng <facboy@gmail.com>