Compactification in the lightlike limit