Adding calling convention and dll declarations.