Fixed struct constructor, added unix resource dir and included climits
Merge pull request #3 from Yepoleb/gcc

Fix gcc compiling