Support Ubuntu 12.04 and 14.04