Fix calling conventions (ticket #10).
Fix calling conventions (ticket #10).
Fix calling conventions (ticket #10).
Fix calling conventions (ticket #10).