Fix reader's build for windows.