Many cleanups and improvements, libs for future armv7s support