fix compile on OS X 10.9

make if statement post-fix, add note that patch is fixed upstream