COMP: fix linking error on Mac OS X