added defines. fixed up pixel/vertex shader loading bugs. fixed up vertex pool / index pool copy overrun