MSVC: gnuc.c/.h are no longer there
Add -mminimal-toc if compiling with gcc on ppc64.

Also adds an utility function to append a new value to a variable.