Fix compile with linux.
Merge pull request #4 from xutao/scanner:travis

Fix compile with linux.
Merge branch 'master' of http://code.dapps.douban.com/lijunpeng/scanner