Fixed compiler errors.
Can now render shadowmaps into the depthbuff.