fix problem with --enable-shared and CGC install