spawn real OS thread for heartbeat (fixes #8)