In Makefile, moves library include to the end of the gcc command string
for building and linking main.

Having this at the beginning caused compilations issues on some setups.
Thanks to Ole Andreas for debugging the problem.