fix build

need another #endif here to go along with the new #ifdef
Merge pull request #758 from l3iggs/patch-2

fix build