Fixed building from inside a git repository and linking with custom libevent