make sure tmp lib directory exists before libraries are built
updated master