Compile fix for Core::Lua

Pretty amazing how long this went unnoticed.
Fix memory leak in Context::LoadMouseCursor
Fix Core::Lua linking

It would compile but not link as templates cannot be defined in .cpp
files, so move them to the .inl file.