FIX: -lpthread added for Linux