Added configure checks for pthread and boost libs