Fixed build for OS X Maverick (10.9) and bug fix in WinLinMacApi