Fixed issue #40. Keep the order of libraries, and allow duplicates. Both are things which are occasionally required for proper linking.