HMC5883L file error

Im using the HMC5883L sensor as part of my project but the HMC5883L file leads to an error when im compiling in the new versions of Arduino, 1.0 onwards. Works fine with the Arduino 0022. Ive performed the functionality changes which came about in 1.0 on the codes but the file erroe stills persists.
This the error i receive:

Arduino: 1.0.6 (Windows 7), Board: “Arduino Duemilanove w/ ATmega328”
C:\Program Files\Atlassian\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Atlassian\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Atlassian\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Atlassian\Arduino\libraries\Wire -IC:\Program Files\Atlassian\Arduino\libraries\SPI -IC:\Program Files\Atlassian\Arduino\libraries\Servo -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L -IC:\Program Files\Atlassian\Arduino\libraries\LiquidCrystal C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\arduino_for_lab6.cpp -o C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\arduino_for_lab6.cpp.o

arduino_for_lab6.ino: In function ‘void loop()’:
arduino_for_lab6.ino:43: warning: unused variable ‘var’
LabVIEWInterface.ino: In function ‘void processCommand(unsigned char*)’:
LabVIEWInterface.ino:88: warning: suggest parentheses around + or - inside shift
LabVIEWInterface.ino:88: warning: suggest parentheses around + or - inside shift
LabVIEWInterface.ino:88: warning: suggest parentheses around + or - inside shift
LabVIEWInterface.ino: In function ‘unsigned char checksum_Compute(unsigned char*)’:
LabVIEWInterface.ino:446: warning: ‘checksum’ may be used uninitialized in this function
LabVIEWInterface.ino: In function ‘int checksum_Test(unsigned char*)’:
LabVIEWInterface.ino:446: warning: ‘checksum’ may be used uninitialized in this function
LabVIEWInterface.ino:446: note: ‘checksum’ was declared here
C:\Program Files\Atlassian\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Atlassian\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Atlassian\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Atlassian\Arduino\libraries\Wire -IC:\Program Files\Atlassian\Arduino\libraries\SPI -IC:\Program Files\Atlassian\Arduino\libraries\Servo -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L -IC:\Program Files\Atlassian\Arduino\libraries\LiquidCrystal -IC:\Program Files\Atlassian\Arduino\libraries\Wire\utility C:\Program Files\Atlassian\Arduino\libraries\Wire\Wire.cpp -o C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\Wire\Wire.cpp.o

C:\Program Files\Atlassian\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Atlassian\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Atlassian\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Atlassian\Arduino\libraries\Wire -IC:\Program Files\Atlassian\Arduino\libraries\SPI -IC:\Program Files\Atlassian\Arduino\libraries\Servo -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L -IC:\Program Files\Atlassian\Arduino\libraries\LiquidCrystal -IC:\Program Files\Atlassian\Arduino\libraries\Wire\utility C:\Program Files\Atlassian\Arduino\libraries\Wire\utility\twi.c -o C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\Wire\utility\twi.c.o

C:\Program Files\Atlassian\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Atlassian\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Atlassian\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Atlassian\Arduino\libraries\Wire -IC:\Program Files\Atlassian\Arduino\libraries\SPI -IC:\Program Files\Atlassian\Arduino\libraries\Servo -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L -IC:\Program Files\Atlassian\Arduino\libraries\LiquidCrystal -IC:\Program Files\Atlassian\Arduino\libraries\SPI\utility C:\Program Files\Atlassian\Arduino\libraries\SPI\SPI.cpp -o C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\SPI\SPI.cpp.o

C:\Program Files\Atlassian\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Atlassian\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Atlassian\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Atlassian\Arduino\libraries\Wire -IC:\Program Files\Atlassian\Arduino\libraries\SPI -IC:\Program Files\Atlassian\Arduino\libraries\Servo -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L -IC:\Program Files\Atlassian\Arduino\libraries\LiquidCrystal -IC:\Program Files\Atlassian\Arduino\libraries\Servo\utility C:\Program Files\Atlassian\Arduino\libraries\Servo\Servo.cpp -o C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\Servo\Servo.cpp.o

C:\Program Files\Atlassian\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Atlassian\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Atlassian\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Atlassian\Arduino\libraries\Wire -IC:\Program Files\Atlassian\Arduino\libraries\SPI -IC:\Program Files\Atlassian\Arduino\libraries\Servo -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L -IC:\Program Files\Atlassian\Arduino\libraries\LiquidCrystal -IC:\Program Files\Atlassian\Arduino\libraries\HMC5883L\utility C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp -o C:\Users\student\AppData\Local\Temp\build7745545553647730603.tmp\HMC5883L\HMC5883L.cpp.o

C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:23:23: warning: WProgram.h: No such file or directory
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp: In member function ‘int HMC5883L::SetMeasurementMode(uint8_t)’:
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:105: warning: no return statement in function returning non-void
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp: In member function ‘void HMC5883L::Write(int, int)’:
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:110: error: ‘class TwoWire’ has no member named ‘send’
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:111: error: ‘class TwoWire’ has no member named ‘send’
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp: In member function ‘uint8_t* HMC5883L::Read(int, int)’:
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:118: error: ‘class TwoWire’ has no member named ‘send’
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:129: error: ‘class TwoWire’ has no member named ‘receive’
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:124: warning: address of local variable ‘buffer’ returned
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp: In member function ‘char* HMC5883L::GetErrorText(int)’:
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:140: warning: deprecated conversion from string constant to ‘char*’
C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:142: warning: deprecated conversion from string constant to ‘char*’