*fixed: make runnable on Linux (GCC + pthread environment)