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