Adding pear captcha code from source.
Show captcha after the first wrong attempt see BT#6486
Adding missing libraries (captcha) see BT#6486