first batch of changes for 64bit
fixed leak in MOAIInputMgr