Fixed mkdir function to use boost.