updated makefile to add atomicCAS support, implemented lock for depth buffer. still need to fix shading