added compilation on non-non linux platforms