Ok, i tried pmb's botaim_mm plugin, compiled it. And it runs fine. I took a look at the project settings, with linking and such. And nothing there thats different from my project settings.
So, i bet it is my code
what could cause this to happen? I'm quite puzzled, but i will investigate