Added include looking in deps/. Fallback to rebar command. if-function is better than special GNU makefile conditions, will rewrite.
Rewritten GNU conditions using if-function.