[fem] fix dirichlet bd treatment in standalone binary