update to compile on ubuntu 12.04