Fixed the reference library location issues.