Fix visibility issues

- Replace DYNAMIC_GRAPH_DLLEXPORT by DYNAMIC_GRAPH_DLLAPI
- Remove an unnecessary attribute

Most importantly, the second point fixes a compilation issue with recent flavors of gcc (namely 4.8.2)