Added Core::captureMouse(bool)

Only implemented on linux on windows so far. Windows version untested.
Merge pull request #272 from CIB/capture-mouse

Added Core::captureMouse(bool)