Fixed build issue with gcc