cmake fix for ubuntu