Fix lib copying during build