Fixing compilation as ExernalProject