Fix code to not break non-linux builds; add README