Fix visibility issues

- Replace DYNAMIC_GRAPH_DLLEXPORT by DYNAMIC_GRAPH_DLLAPI
- Remove an unnecessary attribute