Avoid patching LINKFORSHARED in python Makefile on Linux

Patching the LINKFORSHARED will break the linker when building software depends on python.
For example, vim +python support will be disabled because of this.