I don't know about moving more folders, but you could install stuff straight to SD so you don't need files on internal flash.
Swap should help for compiling, but be sure to either 1) put it on a microdrive or 2) if you only have flash, make a swap partition instead of a swap file. This will localize the wear on your card and should avoid corrupting your data. NEVER put the swap on internal flash.