Fixed some core stuff to achieve compatibility for linux systems.