update for compiling on ubuntu 14.04