Fixed build for GCC newer than 4.7(memset bug)