Have you tried upgrading to the latest XCode?
You might need to be running XCode version 5.0.1 to compile native extensions under Mavericks. Link.
Edit:
As @Doon points out in his comment, you may need to run
xcode-select --install
to get the latest command-line tools.