fix makefile to only create symlinks to .so if one does not exist

otherwise re-compilation breaks