libslcxx: Restore algorithm and fix inclusion guards