Ubuntu

Fix some issues for ubuntu compile and install.