fixed so that it does not recompile the shared lib each time it is loaded on mac