Fix architectural compiler errors and GCC 4.7/4.8.1 compiler errors in piggy, ashldi3, and lib1funcs