Added defines for how to get weights from readings

Also set up project for using Boost in release builds.