Build raytracer program, clean up pointer usage.

still not rendering properly, but the program executes and creates an
empty png.