Redirect stderr in compile check