There was no way to just install libc which is required for stdlibc++
Now files are installed using the install() command instead of manually copying files to their destinations. This allows automatic recompilation of headers that did not work previously
Solution to second puzzle is not optimal, it definately should be O(1) space, but I didn't want to think about it.