Repare compile on ubuntu

Seems like there's a difference in rules processing between distros.