To launch:
sudo apt-get update && sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev
make
./cubed [map file]
Jordi Lensing's map validator fit like a charm so I didn't reinvent the wheel.
C Files used from Jordi's cub3d with minor adjustments:
map_check_c.c, map_check_d.c