Round the note size up correctly.

ELF notes are 4-byte aligned, this fixes the size, which may not be a
multiple of 4, to round them up correctly. This stops pkg crashing on
armeb.
Fix several Makefile.am to support a builddir different than srcdir
Merge pull request #1062 from dumbbell/fix-out-of-source-build

Fix several Makefile.am to support a builddir different than srcdir
Merge pull request #1034 from zxombie/master

Round the note size up correctly.