Support for building under cygwin, fixed an issue with structure packing under mingw32-gcc >= 4.7.