fixed some capatibility issues for linux after development for windows