Add missing #endif at the end of header file.
Fix for Windows compilation (missing __declspec)