add patch support for source install