Ported everything to Linux/Mac

All the tools have been ported. However, the tools depend on the "klei" Python module, which appears to be a compiled C module (likely in the mod_tools/exported directory). Since its source code is not available, I can't do anything about it.