Changed linking of gtests in linux, also added a make dependencies to download third party libraries