- os x assertion fixes

Signed-off-by: Michal Bínovský <michal@binovsky.eu>