define SHARED macro to export from dll/shared lib.