Fixed non PIC build for windows platform