Fixed automake warnings

When using autoreconf -i you will get some warnings about subdir-objects stuff(I am no expert)
This patch fixes that, but someone with more experience with autotools should have a look at it since I just threw some stuff in configure.ac I found on the first hit on google...