Crafting solution for g++