Often it is easy to change an older library to work on Arduino 1.x. What is the first error message you get when you try to verify a sketch? If it tells you that the "WProgram.h" file wasn't found, change the library sources to use "Arduino.h" instead.
In file included from transmitter.pde:11:/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:59: error: variable or field 'vw_set_tx_pin' declared void/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:59: error: 'uint8_t' was not declared in this scope/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:63: error: variable or field 'vw_set_rx_pin' declared void/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:63: error: 'uint8_t' was not declared in this scope/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:67: error: variable or field 'vw_set_ptt_pin' declared void/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:67: error: 'uint8_t' was not declared in this scope/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:71: error: variable or field 'vw_set_ptt_inverted' declared void/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:71: error: 'uint8_t' was not declared in this scope/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:76: error: variable or field 'vw_setup' declared void/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:76: error: 'uint16_t' was not declared in this scope/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:90: error: 'uint8_t' does not name a type/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:98: error: 'uint8_t' does not name a type/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:104: error: 'uint8_t' does not name a type/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:107: error: 'uint8_t' does not name a type/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.h:112: error: 'uint8_t' does not name a typetransmitter.pde: In function 'void setup()':transmitter:21: error: 'vw_set_tx_pin' was not declared in this scopetransmitter:22: error: 'vw_set_rx_pin' was not declared in this scopetransmitter:23: error: 'vw_set_ptt_pin' was not declared in this scopetransmitter:24: error: 'vw_set_ptt_inverted' was not declared in this scopetransmitter:25: error: 'vw_setup' was not declared in this scopetransmitter.pde: In function 'void loop()':transmitter:36: error: 'vw_send' was not declared in this scope
Looks like something is wrong with your copy of the VirtualWire library. It looks like it is not including Arduino.h. Do you have V1.4 (or higher) of VirtualWire? That's the version I have and it appears to be Arduino 1.x compatible. It looks like the latest version is 1.14!
1.14 Added support ATtiny85 on Arduino, patch provided by r4z0r7o3.