Add option for abi selection

This patch adds ability to select abi.
If option is not given, default "C" abi is used.