Switch default calling convention to cdecl.
Merge pull request #1736 from ben/default-to-cdecl

Switch default calling convention to cdecl