[Bug] Fix smoketest and Ubuntu 12.04 support

- Fix smoketest
- Support Ubuntu 12.04