Fix compile under Ubuntu 12.04 (part 1)