mkstemp changed back to mktemp to prevent segfault in dcredbook