Fix idle patients after using the drinks machine

After beta3 patients began to idle before the drinks machine again.
This is caused by the idle action that is inserted by the drinks
machines after_use function. The change skips inserting the idle
action into the action queue, if the patient already left the queue.
Add workaround for standing patients that fell of a queue

The workaround for patients that fell off a queue only caught patients
sitting on a bench. It now checks and fixes standing patients, too
Fix humanoid empty action queue

When the tickDay function sends a patient to the toilets, there
is a small timeframe (the time required for standing up), where the
tryToFindNearbyPatients function tries to reroute a patient who is
going to the toilet. The finishAction function is then called too
often and all actions from the action queue are consumed, so the error
message pops up.
Merge pull request #416 from phillipp/empty-action-queue-fix

Fix humanoid empty action queue
Merge pull request #415 from phillipp/standing-patients-queue-fix

Standing patients queue fix
Update cmake files to fix OS X build issues

Updated OS X deployment target to 10.7 and set architecture to x86_64.
Also, removed existing unused code used to copy libraries for OS X from
CorsixTH and MapEdit cmake files and replaced with new code that
automatically bundles app up and includes them in the app. Added
the code to create a bundle to the AnimView cmake file. Finally, updated
the MapEdit cmake file to use the Lua find package code from the CorsixTH
cmake file, which includes a fix for OS X 64bit.
Merge pull request #420 from admdly/osx-build-fix

Fix for OS X build issues
Bump SAVEGAME_VERSION in preperation for 0.40-rc2
Merge pull request #424 from TheCycoONE/040rc2ver

Bump SAVEGAME_VERSION in preperation for 0.40-rc2