Link jpeg library for tests