Fix PIC warning on cygwin/windows