made compilable for ubuntu