updating compiler settings
removing profile option
some minor cleanup
more threading layer cleanup