Fixed Windows build issues
Fixed compile test to correctly assess $?