Fix #81: compile issue on mach/osx.

Thanks @Stexxen.