Fixed Ubuntu version specific issues and PIL issue on ARMV7