changed resize to take only two arguments. started work on making resize work for all panels.
swapbuffers now makes selected panel be drawn last, so that resize will draw the selected panel over the other panels.
As a band-aid until we can get static const variables for non-primitives working, Panel will now have default member variables.
memcpy needs to have C linkage.