enable building libpostproc
some small fixes