Fix compilation issues
Merge branch 'feature/ooni' of github.com:thetorproject/libight into feature/ooni

* 'feature/ooni' of github.com:thetorproject/libight:
  Review the code and understand the cause of segfault