Since I was debugging i also installed sdl2 dev packages, and this is probably how i got libudev and zlib. But this should do it…
sudo apt install zlib1g-dev libsdl2-dev
technically libsdl2-dev is not required but it ends up installing a bunch of dependencies that you probably also need.