attachECParams: use bind() instead of inline functions
Merge pull request #12 from shesek/bind

attachECParams: use bind() instead of inline functions