[1-Max]: Compilability fixes for 1-max example

Worked on making 1-max example compile. Still WIP.

Signed-off-by: Sebastian Lenartowicz <slenarto@uoguelph.ca>