Added some debug code in attempt to profile more finely. Doesn't compile
Added project directories that link profiling libraries.