There is relatively portable boost method create_directory.