get rid of boost/function (found no way to use __stdcall)