FIX for Windows

- need brackets around (std::min)
- need ZEQ_API in front of all functions in event.h to access this
functions in zeq_newEvent test