Added support for Ubuntu 10.04 and 12.04