Add the -rdynamic flag, needed on cygwin to make symbols visible to dlsym