fixed compilation under linux and 64bit os