Properly link agains .a files using the -l switch.