added APIDEFS variable to variables.mk