stdcall attributes in function pointers

These changes fix #88.