dtrace is not in path when compiled as a normal user and this fixes that
Added declaration for madvise as it is missing