Added Core::captureMouse(bool)

Only implemented on linux on windows so far. Windows version untested.