Fix MACHINE macro defintion
Fix the detecting whether -fPIC compiler flag is needed or not