fix errors on ubuntu 14.04LTS