run compilation in bound thread