add non-GCC support to compile.c and potion.c