cygwin/mingw shared libs need libtool LDFLAGS = -no-undefined

otherwise only static libs are created.
Merge pull request #23 from rurban/master

cygwin/mingw shared libs need libtool LDFLAGS = -no-undefined