If readline is enabled add readline to libraries to link
Merge pull request #1399 from carsonmcdonald/readlinelinkfix

If readline is enabled add readline to libraries to link