Fix duplicate abort if builing with libg

-Rebuild of newlib needed
-Also remove unnecessary "-fPIE"
Fix libsyscalls' read in nspireio mode

-Don't return EOF if empty string
Add -lm to the default linker libs and update libSDL_gfx and libSDL_image