The job market is very, very difficult. Go into it with your eyes open.
Don’t think about trying to find a libertarian program or adviser. Just get into the best program you can, and do the best work you can. You can revise the received view of your area of history later in your career.