Check that double close causes an exception.
Use pkg-config instead of custom libtoxcore finding script