added patch to fix build isses on ubuntu server 14.04.1.