reworked curl shared locking to use pthread rwlocks if available
autoconf improvements
added first draft of man page