Project compiles in arduino, but refuses to compile in visual micro

http://www.visualmicro.com/

In the standard Arduino enviroment, programs compile fine, but in visual micro, it throws the following errors:

Compiling 'Rocket_v5' for 'Teensy++ 2.0'
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
I2Cdev.h : from
HMC5883L.h : from
HMC5883L.cpp : from
core_pins.h : #error "Clock must be 16, 8, 4, 2 or 1 MHz"
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
I2Cdev.h : from
HMC5883L.h : from
HMC5883L.cpp : from
core_pins.h : : In function 'void delayMicroseconds(uint16_t)':
core_pins.h : 'tmp' was not declared in this scope
core_pins.h : invalid lvalue in asm output 0
WProgram.h : In file included from
Arduino.h : from
I2Cdev.h : from
HMC5883L.h : from
HMC5883L.cpp : from
HardwareSerial.h : : In member function 'void HardwareSerial::begin(uint32_t, uint8_t)':
HardwareSerial.h : 'F_CPU' was not declared in this scope
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
I2Cdev.h : from
I2Cdev.cpp : from
core_pins.h : #error "Clock must be 16, 8, 4, 2 or 1 MHz"
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
I2Cdev.h : from
I2Cdev.cpp : from
core_pins.h : : In function 'void delayMicroseconds(uint16_t)':
core_pins.h : 'tmp' was not declared in this scope
core_pins.h : invalid lvalue in asm output 0
WProgram.h : In file included from
Arduino.h : from
I2Cdev.h : from
I2Cdev.cpp : from
HardwareSerial.h : : In member function 'void HardwareSerial::begin(uint32_t, uint8_t)':
HardwareSerial.h : 'F_CPU' was not declared in this scope
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
Servo.cpp : from
core_pins.h : #error "Clock must be 16, 8, 4, 2 or 1 MHz"
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
Servo.cpp : from
core_pins.h : : In function 'void delayMicroseconds(uint16_t)':
core_pins.h : 'tmp' was not declared in this scope
core_pins.h : invalid lvalue in asm output 0
WProgram.h : In file included from
Arduino.h : from
Servo.cpp : from
HardwareSerial.h : : In member function 'void HardwareSerial::begin(uint32_t, uint8_t)':
HardwareSerial.h : 'F_CPU' was not declared in this scope
Servo.cpp : : In function 'void handle_interrupts(timer16_Sequence_t, volatile uint16_t*, volatile uint16_t*)':
Servo.cpp : 'F_CPU' was not declared in this scope
Servo.cpp : : In constructor 'Servo::Servo()':
Servo.cpp : 'F_CPU' was not declared in this scope
Servo.cpp : : In member function 'void Servo::writeMicroseconds(int)':
Servo.cpp : 'F_CPU' was not declared in this scope
Servo.cpp : : In member function 'int Servo::readMicroseconds()':
Servo.cpp : 'F_CPU' was not declared in this scope
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
Wire.h : from
Wire.cpp : from
core_pins.h : #error "Clock must be 16, 8, 4, 2 or 1 MHz"
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
Wire.h : from
Wire.cpp : from
core_pins.h : : In function 'void delayMicroseconds(uint16_t)':
core_pins.h : 'tmp' was not declared in this scope
core_pins.h : invalid lvalue in asm output 0
WProgram.h : In file included from
Arduino.h : from
Wire.h : from
Wire.cpp : from
HardwareSerial.h : : In member function 'void HardwareSerial::begin(uint32_t, uint8_t)':
HardwareSerial.h : 'F_CPU' was not declared in this scope
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
twi.c : from
core_pins.h : #error "Clock must be 16, 8, 4, 2 or 1 MHz"
wiring.h : In file included from
WProgram.h : from
Arduino.h : from
twi.c : from
core_pins.h : : In function 'delayMicroseconds':
core_pins.h : 'tmp' undeclared (first use in this function)
core_pins.h : (Each undeclared identifier is reported only once
core_pins.h : for each function it appears in.)
core_pins.h : invalid lvalue in asm output 0
twi.c : : In function 'twi_init':
twi.c : 'F_CPU' undeclared (first use in this function)
Error compiling

It doesn't seem to be able to find the board file. Anyone have any Idea of how to tell it where that is located?

Thanks in advance, Max.

PS: it doesn't matter what code is being compiled, but this only happens when a board other than the uno is selected.

What did the people at the visualmicro forum say?
I didn't really see this as an Arduino question/problem.

Figured it out.

For future searchers:

I added "F_CPU=16000000L;USB_SERIAL;LAYOUT_US_ENGLISH" as a project parameter to the project config, as described by the following link.

http://www.visualmicro.com/page.aspx?id=49de886e-f12f-4e3d-90ab-99efc46fbc7b