Fix compilation issues under MinGW
Added test
Merge branch 'master' of github.com:mariusmuja/flann