Daco has a guide on how to compile with visual studio and this guidemostly applies to us as well. The main thing you can skip is thecert.sys piece
https://code.google.com/p/priiloader/wiki/How_To_compile_Priiloader_Windows