Replace posix strdup with c standard strlen/malloc/memcpy

On MSVC the strdup implmentation differs from the posix version causing a
heap violation error when the resulting string is freed.
Update changelog to reflect changes made since 0.40-beta1.
Merge pull request #410 from TheCycoONE/changelog_040

Update changelog to reflect changes made since 0.40-beta1.
Add 0.40 to getVersion list, tagged to save game version 89

Also bump the save game version to 89 to identify the release candiate.
Merge pull request #412 from TheCycoONE/ver040

Add 0.40 to getVersion list, tagged to save game version 88
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
Remove version from README.txt

There is nothing version specific about this file, so there's no reason to include the version at the top.
Fix #433

If the doctor managed to leave the psych before an Elvis patient was
finished redressing then an error would occur and the patient would get
stuck.
Merge pull request #435 from Lego3/fix_psyc_room_staff_error
Bump SAVEGAME_VERSION for 0.40-rc3
Remove outdated LuaJIT 64bit check

Removed an outdated check for LuaJIT 64bit which states that a 64bit
version is not available. This is no longer true as a 64bit version of
LuaJIT is now available.
Update spanish.lua

Updating translation with latest epidemic changes and tweaked a couple of lines