fix for portability
Merge pull request #4 from foogit/master

Fix for Portability