Support libjpeg8 on Ubuntu 12.04

- Added 'apt' as a dependency to make sure `apt-get update` runs so Ubuntu 12.04 can use 'libjpeg8-dev' instead of 'libjpeg62-dev'.
- Added Berksfile to test suite to install 'apt' dependency.