Rename 'pref' to 'libTargetDir'.