Fix non-standard #endif