link options were moved to the end of the command line.
Some includes had wrong paths.