If you download the code from SVN, ensure that the file dates are preserved, otherwise some files might be regenerated with incompatible versions of flex++ or swig.
To do so, set this in your file ~/.subversion/config:

[miscellany]
use-commit-times = yes