uses the proper library linking