[1-Max]: More compilability fixes

Finally, the 1-max example compiles. Still need to link it and make sure
everything works.

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