Merge pull request #936 from moai/master

Synchronization of the branch.
Fix luagc_count in getMemoryUsage in moaiSim

see: http://pgl.yoyo.org/luai/i/lua_gc the value was just getting the bytes not the kilobytes.
pex plugin: Fix radial emitter

The radial emitter was lacking one assignment present in the gravity emitter,
with the result that it didn't display anything.
pex plugin: Cleanup and bug fixes

This looks larger than it is.

There was a ton of duplicated code between the gravity and radial script
cases, and that's simplified and cleaned up. Also, there's some overly
complicated computations, and dead code. It appears that the intended
angle computations for gravity emitters weren't quite correct. The
sourcePosition and sourcePositionVariance values were ignored. The code
to read in attributes could easily overrun buffers. In theory, all of
these should be fixed now.
particles-pex-plugin sample: Clean up .pex file, update usage

The sourcePosition and sourcePositionVariance values were being mostly
ignored, and the usage of them with setRect was an extra complication.
Instead, we now handle those internally in the plugin code. Update
sample accordingly.

Also clean up the sample so it's more readable.
Fix miscapitalized attribute name.

There was a typo in one of the attribute names. We still accept the
old attribute name, but we now recognize the correct capitalization
and update the example to match it.
move to openssl-1.0.0m
re-apply fixes needed for mingw
(http://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/AANLkTinrq34UOHsUS7mZt82wepv_SvttNedd4xwm-JqU@mail.gmail.com/)
added linux opensslconf.h
fixed issues in android openssl platform include
openssl upgrade for osx and ios
fix misconfigured visual studio include for openssl
Merge pull request #939 from seebs/seebs/pexpluginfixes

Seebs/pexpluginfixes
Merge pull request #941 from moaiforge/pull_openssl100m

openssl 1.0.0m see #940
Merge branch 'master' into 1.5-development
Fixed a bug when you have set a ScissorRect to MOAIProp.

* Fixed the problem that is drawn out of the range of the Viewport.
* Fixed the problem  that is one pixel drawing at the boundary of the
window in OSX.
Merge pull request #943 from moai/fix-scissor-test

Fixed a bug when you have set a ScissorRect to MOAIProp.
Fix const definitions for MOAICameraAnchor2D and MOAICameraFitter2D

CameraFitter and CameraAnchor consts were set in `RegisterLuaFuncs` instead of `RegisterLuaClass` like other classes.  This fix moves them to the correct method to make them accessible from Lua.
Merge pull request #947 from criptych/fix-camerafitter-consts

Fix const definitions for MOAICameraAnchor2D and MOAICameraFitter2D
Use timer for OS X

The configuration of the SDL timer was contingent on
"if(UNIX AND NOT APPLE)" or "if(WINDOWS)", with no attempt to
configure it for OS X.

The Unix timer is maintained for OS X and works fine. Copying
and pasting a few lines into the APPLE section fixes it.

What this fixes: Without it, if you use Spaces/Mission Control
and page such that the app isn't rendering, it uses 100% of CPU.
Also SDL_GetTicks() always returns zero and SDL_Delay() always
returns instantly.