Make save-frame and restore-frame work on AMD64 and i386