remove #undefs in shk.c