fixing test compilation on OS X