use PTHREAD and RT flags