Fixes for Emacs 24.3, added some ngGo releated functions.