Fixed unit test errors on Linux

Fix issue: blackberry/BB10-WebWorks-Framework/issues/489
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