updated compilation for ubuntu