[API] API for capturing the visible page of window. Fix #81.
Fix linux build error.
Merge pull request #436 from zhchbin/issue81

[API] Support api in the window to capture the visible page.