BGQ - Fix issue where limits were checked on midplane counts instead of
cnode counts.
BGQ - Move code to only start job on a block after limits are checked.

Related to bug 771
Handle node ranges better when dealing with accounting max node limits.
Fix perlapi to compile correctly with perl 5.18
follup patch for d849aadbc7f7da78299e61d279457d9f1e36f9ed
Merge remote-tracking branch 'origin/slurm-2.6' into slurm-14.03

Conflicts:
	contribs/perlapi/libslurm/perl/typemap
	src/slurmctld/acct_policy.c