Update exporter to Blender 2.66a

Update changes in the exporter code for compatibility to Blender 2.66a