Cross-platform foundation library