Fixed build issues with ubuntu trusty