turn on rest of warnings flags on gnu compiler.

and link order fixed.