Made platform dependent stuff possible, dont wonder if stuff is broken. Fixes #2.