added linking of pthread to be able to compile on latest archlinux and latest gcc
Merge branch 'next' of https://github.com/blackberry/GamePlay into next

Conflicts:
	gameplay-samples/CMakeLists.txt
	gameplay-tests/CMakeLists.txt
Fixed copying recursive res files in new project cmake file
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Added a lua function "convert" to convert a userdata value to another gameplay class type.
The purpose of this function is convert a Control to a Button, or PhysicsCollisionObject to a PhysicsRigidBody.
This function will change the meta table of the userdata value to the meta table of the class with the given name.
Updated CHANGES.md
Changed the comment for Matrix.createPerspective to say degrees instead of radians.
Fixed #831
Merge pull request #851 from dgough/next

Added a lua function "convert" to convert a userdata value to another gameplay class type
Merge pull request #852 from ablake/next

More Mac gamepads
Fix broken simulator build in master. Please patch next branch, too.
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Initial Linux Gamepad support
Better Axis mapping struct
Added PS3 mappings
refactoring gamepad code
blacklisting virtual devices
Merge branch 'lin_gamepad' into next
removed unneeded header include
added const qualifier to MeshBatch::add vertices argument