fix compile with cygwin64, make sure all warnings are enabled