Added some NSScreen functions, and fixed the warning for objc code