Place libraries in the bin dir.
Fix tests.