Fixed library order. To fix linking under gcc linux.