tools: dtoc: Open all binary files in binary mode