Better stubs for System and CreateThread