Pr configure fixes for visual studio

Various fixes to make cmake to pass successfully on with -G "Visual Studio 12" generator. Also fixed one test case linking problem with poclu when compiling on Ubuntu with self compiled llvm 3.5.
How does it fail? We could run it with lli's force interpret switch enabled which disables JIT. If lli just does not work with ARM probably better to leave exe solution for all unix platforms. I'm ok with MSVC specific check here (MinGW on windows does have all libc and linker stuff).