Linux

Update linux build files.

Also, you have to use recursive mutexes if you expect to lock them multiple times in the same thread, without unlocking between.
This causes deadlocks on Linux as the some ProcessEvents calls, called with the eventMutex held, try to add new events to the queue, which try to re-lock the event mutex.