Include print.h now that we use a function from it
Add -O2 to default set of compiler and linker flags