Vote up/down module undefined constant errors
The module page for Vote Up/Down says (emphasis mine):


  7.x (unstable, on development, do not use this version for production)


NODE_BUILD_PREVIEW was a constant in Drupal 6. I imagine that the maintainers of Vote Up/Down have branched off of the old D6 version to create the D7 version...and haven't completed the changes yet.

There's not even a dev/unstable release available for download on the module page so you definitely shouldn't be using this module for the time being.