library: Implement explicit free method
library: Merge Linux and OSX blocks into Posix