[bugfix] Change library order due to static linking problems.
[change] Include what you use.