C++0x is going to make the following code and similar code ill-formed, because it requires a so-called narrowing conversion of a double to a int<
double
int<
Try adding -Wno-narrowing to your CFLAGS, for example :
CFLAGS += -std=c++0x -Wno-narrowing