resolving some issues so that Bitcoin-lib-php can use phpecc as a dependancy

some small fixes and adding SECcurve
It's still used in Gmp.php and Bc.php in `squareRootModPrime`, shall I replce those with LogicException too?