changes for compatible compilation in Linux