Set compilation flags properly

add_definitions() was being misused instead.
Added a cmd line parameter for max threads
Incorporated eris's new Positional<T> class
Updated build to use system's liberis