added propper extern C option for linking functions,both import/export