Changes for build native extensions and avoid error with mkdir.