support LIBDIR macro
remove unused preload variable
Merge branch 'master' into autotools