Do not compile third-party libraries available on ubuntu

Change-Id: I726256feba018c98386257b070ac905154e513fe