[osx] match OTHER_LDFLAGS for debug and release