Added missing #endif

Looks like the last merge broke the build.
Merge pull request #148 from rubiojr/fix-build

Added missing #endif