Add build env additions

This PR brings new additions to the build environment:
 * libudev discovery
 * pthreads
 * ignoring the executable we create
But why did you add it then?