Fixed incorrect buffer size in several places

Use correct sizes instead of sizeof(pointer)
Xbox 360 controller support
Merge pull request #136 from lilligreen/Xinput

Xbox 360 controller support
Hand merging rnd branch, which is just Leap Motion support and input improvements. This will temporarily break the other platforms, which I will fix immediately.
Fixed OS X and iOS platforms for Leap Motion integration.
Revert "Fixed OS X and iOS platforms for Leap Motion integration."

This reverts commit 26799f422db59f259704eccda391b7eb82878d2a.
Revert "Hand merging rnd branch, which is just Leap Motion support and input improvements. This will temporarily break the other platforms, which I will fix immediately."

This reverts commit 3067b33f4861f9824b0f6bc81a6f916db95275ae.
Added missing Mutex to _StringTable::lookupn

brought up in issue #135
Merge pull request #127 from Vbif/development

Fixed incorrect buffer size in several places