Fix linux compile

This should fix compilation on linux as well as letting windows do it aswell. Needs a test there though.