fix prototype on os x