issue #2771: implements rayCast and rectQuery
issue #2771: add ray cast test
issue #2771: fix some compile error in android and win32
issue #2771: fix some compile error in win32