MinGW fixes

Hi, Simson. I noticed that HEAD of bulk_extractor doesn't build with MinGW presently. These two patches---one to fix a misplaced #endif, and one to correct two bad logical expressions---get HEAD to build with MinGW once more.