Fix patches for FTBFS

- Remove disable-test_security_curve.patch
- Fix unit tests