external project adaptated to compile in ubuntu