Worked on including dynamic libraries in the folder to make OS X building easier. Narrowed the malloc bug on OS X down to something which happens in the external API for vrep when setting a signal.