Updates for build on Linux

To make the build can work on Linux:
1. updated configure to make it work in linux
2. updated pom.xml to excecute configure with bash
3. fixed unit test error in framework