secure string operations in compile.c