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
please keep the spaces in the () braces