Fixed five unreachable code warnings.

One was a mis-scoped #if and the other two were return calls after throwing exceptions. I have built in 2.0, 3.5, 4.0, 4.5 and SL. I have tested all except SL.