Allow setting library calling convention and getting ctypes symbols