Include <memory> in main compiler header