Fixing fPIC warning and exporting gear2d_EXPORTS