Updated configure script to support non-x86 platforms

Signed-off-by: Haru <haru@dotalux.com>
Tweaked a platform check to support ARMv6+

Signed-off-by: Haru <haru@dotalux.com>
Fixed some warnings on ARM

Now Hercules is officially able to compile and run on a Raspberry Pi.

Signed-off-by: Haru <haru@dotalux.com>