Issue 20: fix compile problem under MacOSX 10.9

#20