Fix linking libelf when building hack tools

Fixes errors when building hack tools which introduced in the commit
facebook/hhvm@b3b564d8e1d31c0676440ffe75d48bbf2b36271d