mosh: fix building head