Ubuntu 12.04 is too old, try dist-upgrade, then try build again