Make S2 compile on OS X