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

some small fixes and adding SECcurve
This too should be a logic exception, or possible a `\RuntimeException`