Fixed compilation under MacOS X, should fix #18