misc: fixed Mac OS X build