RaspberryPiRAMAdder will add more RAM to your Raspberry Pi via zram.
Raspberry Pi OS (formerly Raspbian), has all the dependencies (g++ and make) included. The usual ./configure and make should install from the tarball. Autotools is required for building from git.
If you decide that you want to remove the extra RAM, then you can download RaspberryPiRAMRemover from the releases section