ok i found why: i was using llvm compiler, not vanilla gcc.
but we should make it work on llvm eventually, since Apple seems to be dropping support of old gcc compilers:
http://stackoverflow.com/questions/8707367/using-gcc-not-llvm-gcc-with-mac-o...