You are using an older version of MySQL (R5 / R6 (non-threaded))
You have to get the most appropriate include & plugin and then try to compile it.
Thanks for the fast response, but I'm using the latest version (R39). I looked for the older version that supports non-threaded scripts, but I just can't find it