less dirty way of fixing it OS X compilation issue.