fixes issue on linux that can cause a segfault with gcc greater than 4.8.0 but less than 4.9.1, where c++1y class-member lambdas called from non-static c code do not map to the correct address when dereferenced, this fix makes the callback static before handing it off to the function that calls it (needs to be tested on osx)
cleanup