Update source files with new functions from Gmacs internal code