changed version var. added more explicit macros for funtion exporting when build shared lib