Add cross-platform compatibility