Fixed build errors in GCC/Linux.