modified dll to export functions as c