Added more OS support in default, and defined free mem as well.