Update source for gcc 4.8 and add -o3 build