Fix for #428

Please pull the fix for build issue #428. I've tested the fix on Mac and Linux. Windows should not be affected.