Revert "Delete gs.h"

This reverts commit 8fbeb43ed31789ad0de806c164c8727696cd4759.
Revert "Delete gs.c"

This reverts commit 9bd4d26a50b9f883fedcb3ad17c1337db6a65bee.