[Core/1-Max Example]: More compilability fixes

Fixing it up so it's actually proper object-oriented C++ code. Also added
.so files to the top-level .gitignore.

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