[FIX] fix compile issue on win32 systems
[FIX] replaced class export with method level export in FeatureMap
[FIX] fixes a test failure in TextFile_test