Add more suitable GCC flags, remove standard library dependency and remove unused C functions