First commit including infrastructure and method to get thread-id (LWP) that works on linux