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 by default on linuxbrewed python.