fix debug warnings on OS X - closes #50