make samples compile on gcc 4.9/ArchLinux