Tracks are laid in segments, and each station has its own light.
Added conditional header support for Apple and removed apple specific swapBuffer call.