Handle #endif

I now actually handle #endif, which allows me to have more than a
single #ifdef at the top of the file.