Fix makefile issues for ubuntu.