Add GCC 4.8.x patch and s2w functions