Simplify for shared object extension.

See also https://github.com/hiyuh/cygwin-dll-example.
Add IMPLIB_REQUIRED trick.

See also https://github.com/hiyuh/cygwin-dll-example.
Merge pull request #21 from hiyuh/implib

fix cygwin port cont'd